﻿using WidgetsDesign.API.Models;

namespace WidgetsDesign.API.Services
{
    public interface IMeetingRepository
    {
        void CreateTrain(MeetingModel train);

        Task<bool> SaveAsync();

        void UpdateEmployees(MeetingModel train);

        Task<MeetingModel> UnderwayTrain();

        void UpdateTrain(MeetingModel train);

        void UpdetaFiles(string fileJson);

        void SaveVideo(string id); 

        void DeleteErrorTrain();

        Task<List<MeetingModel>> queryList(int pageIndex, int pageSize, DateTime? startTime = null, DateTime? endTime = null, String? name = null);

        Task<int> getTotal(DateTime? startTime = null, DateTime? endTime = null);

        Task<MeetingModel> queryTrainById(string id);

        void DeleteTrainById(string id);
    }
}
